{% load static %}
<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Jekyll v3.8.5">

    <title>{% block title %}未命名{% endblock title %}</title>

    <link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/navbar-static/">
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
        integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">

    <link rel="stylesheet" href="{% static 'todolist/css/base.css' %}">
    <link rel="stylesheet" href="{% block css %}{% endblock css %}">
</head>

<body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4">
        <a class="navbar-brand" href="#">ToDo List</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse"
            aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarCollapse">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item {% block homeActive %}{% endblock homeActive%}">
                    <a class="nav-link" href="{% url 'todolist:home' %}">Home <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item {% block aboutActive %}{% endblock aboutActive%}">
                    <a class="nav-link" href="{% url 'todolist:about' %}">About</a>
                </li>
            </ul>
        </div>
    </nav>

    <main role="main" class="container">
        {% block mainContent %}

        {% endblock mainContent %}
    </main>

    {% block otherContent %}

    {% endblock otherContent %}

    <!-- 对jquary的js文件的引用要放在使用jquary之前-->
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script src="{% static 'todolist/js/jquery.cookie.js' %}"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
        integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
        crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
        integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
        crossorigin="anonymous"></script>

    {% block scriptContent %}

    {% endblock scriptContent %}
</body>

</html>